#pragma once
#include "SDL.h"
class SDLRenderer
{
#pragma region Singleton
public:
	static SDLRenderer* GetInstance()
	{ 
		if(!instance)
		{
			instance = new SDLRenderer();
		}
		return instance;
	}
	static void Kill()
	{
		delete instance;
		instance = 0;
	}
private:
	static SDLRenderer* instance;
	SDLRenderer();
	SDLRenderer(const SDLRenderer& e);
	~SDLRenderer();
	SDLRenderer& operator=(const SDLRenderer& e);
#pragma endregion
public:
	SDL_Surface* GetScreen() const
	{
		return screen;
	}

	void SetResolution(int width, int height, int bpp)
	{
		this->width = width;
		this->height = height;
		this->bpp = bpp;
	}

	void StartRendering();
private:
	SDL_Surface* screen;
	int width;
	int height;
	int bpp;
};

